
//
//  BannerModel.swift
//  ZNZXSuperMarket
//
//  Created by 四川中农 on 2018/8/10.
//  Copyright © 2018年 四川中农. All rights reserved.
//

import Foundation
import HandyJSON

struct IndexModel:HandyJSON {
    var banners:[BannerModel]?
    var fireSite:FireSiteModel?
    var siteGoods:[SiteGoodsModel]?
}

struct BannerModel:HandyJSON {
    var cityId = 1
    var content = ""
    var createTime = ""
    var id = 5
    var img = "";
    var modifyTime = ""
    var position = 0;
    var type = 0;
    var title = ""
}

struct FireSiteModel:HandyJSON {
    var cityId = 0
    var content = ""
    var createTime = ""
    var endTime:Double = 0
    var goodsCount = 0
    var id = 0
    var modifyTime = ""
    var moneyCount = ""
    var startTime:Double = 0
    var state = 0 // 0 未开始  1 进行中 2 已结束
    var img = ""
    var name = ""
    
}

struct SiteGoodsModel:HandyJSON {
    var activityDesc = ""
    var activityMoney:Double = 0
    var aftersaleDesc = ""
    var bigTypeId = 10
    var buyCount = ""
    var cityId = 1
    var createTime = "1533200668000"
    var discountMoney:Double = 0
    var distributionDesc = ""
    var hideMode = "";
    var id = 29
    var img = ""
    var isActivity = 0
    var isDiscount = 0
    var isCollection = 0
    var isMy = 0
    var level = ""
    var marketPrice = ""
    var modifyTime = "1533866477000"
    var name = ""
    var newAttribute = "";
    var num = 0
    var packageId = 0
    var payDesc = "";
    var payDescTwo = ""
    var peddlersGoodsId = "";
    var peddlersPrice:String?
    var price:Double = 0
    var purpose = ""
    var smallTypeId = 7
    var spec = ""
    var specDesc = ""
    var specId = 3
    var state = 0;
    var storageMode = ""
    var varieties = ""
    var video = ""
}
